cmake_minimum_required(VERSION 3.28.3)

project(lualib)

include_directories(include)

aux_source_directory(src SRC)

add_library(lualib_shared SHARED ${SRC})
add_library(lualib_static STATIC ${SRC})

set_target_properties(lualib_shared PROPERTIES OUTPUT_NAME "lualib")
set_target_properties(lualib_static PROPERTIES OUTPUT_NAME "lualib")

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)